<template>
  <div class="root">
    <div class="left">
      <img :src="`${url+data.imgSrc}`" alt>
    </div>
    <div class="right">
      <h4>{{data.title}}</h4>
      <div class="time">
        <span>{{data.from}}</span>
        <span>{{data.date}}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Object,
      required: true
    },
    url: {
      type: String,
      required: true
    }
  }
};
</script>

<style lang="less" scoped>
.root {
  height: 101px;
  padding: 10px;
  border-bottom: 1px solid #e4e4e4;
  display: flex;
  .right {
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    .time {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      color: #797979;
    }
  }
  img {
    width: 120px;
    height: 80px;
  }
}
</style>
